package Day30;

import java.util.Scanner;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-10-22
 * Time: 23:18
 * To BE A Better Person-2020-3-2
 */
public class TestDemo {
    public static boolean isBigger(char c){
        return c < 'A';
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        StringBuilder str= new StringBuilder(sc.nextLine());
        for (int i = 0; i < str.length(); i++) {
            if(str.charAt(i) == ' '){
                i++;
            }
            if(str.charAt(i) == '<'){
                i+=5;
            }
            char temp=str.charAt(i);
            temp-=5;
            if(isBigger(temp)){
                temp= (char) ('Z' - 'A' + temp + 1);

            }
            str.setCharAt(i,temp);
        }
        System.out.println(str);
    }
}
